From: Jasper St. Pierre Date: Thu, 23 Jan 2014 19:35:10 +0000 (-0500) Subject: network: Let NetworkManager figure out the best AP for the connection X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2881 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4faf421d5ad9d8658dbaf268cbb194ec5a4a25ca;p=gnome-shell.git network: Let NetworkManager figure out the best AP for the connection According to dcbw, this can be handled by NetworkManager now. --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index c3212cc3b..489d5335a 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -733,16 +733,11 @@ const NMWirelessDialog = new Lang.Class({ _connect: function() { let network = this._selectedNetwork; - let accessPoints = network.accessPoints; if (network.connections.length > 0) { let connection = network.connections[0]; - for (let i = 0; i < accessPoints.length; i++) { - if (accessPoints[i].connection_valid(connection)) { - this._client.activate_connection(connection, this._device, accessPoints[i].dbus_path, null); - break; - } - } + this._client.activate_connection(connection, this._device, null, null); } else { + let accessPoints = network.accessPoints; if ((accessPoints[0]._secType == NMAccessPointSecurity.WPA2_ENT) || (accessPoints[0]._secType == NMAccessPointSecurity.WPA_ENT)) { // 802.1x-enabled APs require further configuration, so they're